package re_0905.question_meituan;

import java.util.concurrent.ArrayBlockingQueue;

public class Main {
    public static void main(String[] args) throws Exception {
        MoterThreadPoolExecutor executor = new MoterThreadPoolExecutor(5, new ArrayBlockingQueue<>(20));

        System.out.println();
        for (int i = 0; i < 20; i++) {
            executor.submit(User.getInstance());
        }
        executor.shutDown();
    }
}

